/**
 * Created by YLBG-YCY-1325 on 2017/3/9.
 */
public class Mbg {
    public static void main(String[] args) {
        try {
//            generator("E:\\IDEAWork2\\MyMaven\\src\\Test\\com\\lemontree\\MBG.xml");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

//    private static void generator(String file) throws Exception {
//        List<String> warnings = new ArrayList<String>();
//        boolean overwrite = true;
//        File configFile = new File(file);
//        ConfigurationParser cp = new ConfigurationParser(warnings);
//        Configuration config = cp.parseConfiguration(configFile);
//        DefaultShellCallback callback = new DefaultShellCallback(overwrite);
//        MyBatisGenerator myBatisGenerator = new MyBatisGenerator(config, callback, warnings);
//        myBatisGenerator.generate(null);
//    }
}
